package com.shopping.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.shopping.dao.UserInforDao;
import com.shopping.po.User;
import com.shopping.po.UserInfor;
import com.shopping.service.UserInforService;

@Service
@Transactional
public class UserInforServiceImpl implements UserInforService {
	@Autowired
	private UserInforDao inforDao;
	
	public UserInfor selectInfor(Integer user_id){
		
		return this.inforDao.selectInfor(user_id);
		
	}
	
	public void insertInfor(String realname,String gender,String ars, String home,Integer user_id) {
		inforDao.insertInfor(realname,gender,ars,home,user_id);
	}
	
	public void updateInfor(String gender,String ars, String home) {
		inforDao.updateInfor(gender,ars,home);
	}

}
